﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace VirtualTileTest2
{
    class Content
    {
        public string DisplayName { get; set; }
        public string Path { get; set; }

        public Content(string displayName, string path) {
            DisplayName = displayName;
            Path = path;
        }
    };

    class ContentsList
    {
        List<Content> mContentList = new List<Content>();

        public ContentsList() {
            CreateDummyList();
        }

        private void CreateDummyList() {
            mContentList.Clear();
            var files = Directory.GetFiles("C:/data/jpgs/jpeg", "*.jpg");
            foreach (var path in files) {
                var c = new Content(Path.GetFileNameWithoutExtension(path), path);
                mContentList.Add(c);
            }
        }

        public int Count { get { return mContentList.Count; } }

        public Content ContentNth(int nth) {
            return mContentList[nth];
        }
    }
}
